/**
 * 
 */
package game.kill.biz;

import game.kill.enums.RoomActionEnum;
import game.kill.model.GameRoomInfo;
import game.kill.model.Room;
import game.kill.model.RoomUser;

/**
 * @author leiruiqi
 *
 */
public interface RoomBiz {
	

	/**
	 * 获取房间信息
	 * @param roomId
	 * @return
	 */
	GameRoomInfo getUserRoomInfo(Long roomId);
	
	
	/**
	 * 获取用户当前有效的游戏状态
	 * 
	 * @param userId
	 * @return
	 */
	RoomUser getEffectRoomUserByUserId(Long userId);
	
	/**
	 * 房间行为，如：进入房间，离开房间
	 * @param userId
	 * @param roomId
	 * @param roomAction
	 */
	void doRoomAction(Long userId,Long roomId,RoomActionEnum roomAction);
	
	Room createRoom(Long masterUserId,Integer playUserNum);
	
	
}
